@import "./variable.scss";
//头部导航栏
.adm-nav-bar {
    background-color: $navBarBackgroundGray;
    --height: 52px;
    color: #444;
    &.no-left {
        .adm-nav-bar-left {
            visibility: hidden;
        }
    }
}
.adm-tabs {
    background-color: $TabBackground;
}

.btns {
    display: flex;
    justify-content: flex-end;
    .adm-button {
        margin-left: 2px;
    }
    button {
        border-radius: 4px;
    }
}

//滚动容器
.bScroll-container {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    overflow: hidden;
    .list-item {
        padding: 10px;
        overflow: hidden;
    }
    .adm-card {
        margin-bottom: 10px;
    }
}

.grid-table {
    .ag-center-header .ag-header-cell-comp-wrapper {
        justify-content: center;
    }
    .ag-cell {
        display: flex;
        align-items: center;
    }
}

.rc-input-number-input-wrap input {
    width: 100%;
    height: 100%;
    border: none;
    &:focus {
        outline: none;
    }
}

.file-list-container {
    margin-top: 10px;
    height: 100%;
    .sub {
        border: 1px solid #eee;
        border-top: 3px solid #4371d3;
        width: 100px;
        height: 30px;
        line-height: 30px;
        margin-top: 25px;
        // margin-left: 20px;
        text-align: center;
    }
    .adm-list-item-content-main {
        padding: 12px;
        p {
            display: flex;
            span {
                &:first-child {
                    width: 80px;
                }
                &:last-child {
                    flex: 1;
                }
            }
        }
        .clickable {
            color: #4371d3;
        }
    }
}

.file-info-list {
    height: 100%;
    background-color: #f8f7f7;
    .file-info-container {
        padding: 10px;
        .adm-popup-close-icon {
            top: 0;
        }
        .adm-list-item {
            margin-bottom: 8px;
        }
    }
}

//附件上传
.upload-container {
    padding: 8px;
    background-color: #fff;
    .uploader {
        display: flex;
        .uploader-cell {
            position: relative;
            width: 80px;
            height: 80px;
            border-radius: 4px;
            overflow: hidden;
        }
        .uploader-upload-button {
            background-color: #f5f5f5;
            text-align: center;
            line-height: 80px;
            display: block;
        }
        .tips {
            display: flex;
            flex: 1;
            align-items: center;
            color: #f56d29;
            margin-left: 20px;
        }
    }
}

/*路由切换过渡 */
/* 入场动画过程 */
.forward-enter {
    transform: translateX(100%);
}
.forward-enter-active {
    transition: 0.3s;
    transform: translateX(0px);
}
.back-enter-done {
    transition: 0.3s;
    transform: translateX(0px);
}

/* 出场动画过程 */
.back-enter {
    transform: translateX(-100%);
}
.back-enter-active {
    transition: 0.3s;
    transform: translateX(0px);
}
.forward-enter-done {
    transition: 0.3s;
    transform: translateX(0px);
}

/* 404页面*/
.notFound,
.error {
    width: 100%;
    height: 100%;
    & > .img {
        width: 317px;
        height: 178px;
        background-image: url("../assets/img/404.png");
        background-size: 100% 100%;
        margin: 100px auto 40px;
    }
    & > .link {
        text-align: center;
        color: #0080ff;
        cursor: pointer;
        &:hover {
            text-decoration: underline;
        }
    }
}
.error {
    & > .img {
        width: 367px;
        height: 155px;
        background-image: url("../assets/img/error.png");
        position: relative;
        & > .link {
            position: absolute;
            width: 100px;
            height: 30px;
            bottom: 0;
            left: 50%;
            margin-left: -50px;
        }
    }
}
